updating oE text_color

text_color

include graphics.e 
namespace graphics 
public procedure text_color(color c) 

sets the foreground text color.

Parameters:
  1. c : the new text color. Add BLINKING to get blinking text in some modes.
Comments:

Text that you print after calling text_color will have the desired color.

When your program terminates, the last color that you selected and actually printed on the screen will remain in effect. Thus you may have to print something, maybe just '\n', in WHITE to restore white text, especially if you are at the bottom line of the screen, ready to scroll up.

Example 1:
text_color(BRIGHT_BLUE) 
See Also:

bk_color , clear_screen

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu